﻿using AutoMapper;
using TravelServer.DTOs;
using TravelServer.Models;
namespace TravelServer.Profiles
{
    public class OrderProfiles : Profile
    {
        public OrderProfiles()
        {
            CreateMap<Order, OrderDto>()
                .ForMember(
                dest => dest.State,
                opt => opt.MapFrom(src => src.State.ToString())
                );





        }
    }
}
